# 字段数据类型符号：{}
dict1 = {'name': '蔡徐坤', 'age': 28, 'like': 'rap'}

print(dict1)
print(type(dict1))  # <class 'dict'>
print(len(dict1))  # 3:字典长度是一个键值对为1

# 了解
emp = dict(name="tom", age=22)
print(emp, type(emp))  # {'name': 'tom', 'age': 22} <class 'dict'>

# 空字典
d = {}
print(d, type(d))

# 集合：符号{值,值,值}
# print({1, 2, 3})
# print(type({1, 2, 3}))  # <class 'set'>
# print(set(), type(set()))
